home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 December / Software of the Month Club 1996 December.iso / pc / dos / sri / edu / colaid24 / setup.dta < prev    next >
Encoding:
Text File  |  1996-06-21  |  8.9 KB  |  212 lines

  1. #SETUP.DTA, Updated 6/21/96
  2. BANNER " College Aid Calculator 96-7 (TM) ... Copyright 1996"
  3.  
  4. :VARIABLES
  5. SET %DiskSpaceNeeded "10000000"
  6. SET %BOOT "C:"
  7. SET %DestExe "C:\COL_AID"
  8. SET %DATEFMT "American"
  9. SET %NUMFMT "American"
  10. SET %CURNAME "Dollars"
  11. SET %CURSYM "$"
  12. SET %DATESEP "/"
  13. SET %ShareMode "MULTI"
  14. SET %NoSh ""
  15. SET %Set "s"
  16. SET %WinPath "C:\WINDOWS"
  17. SET %chc "X"    
  18.  
  19. :GREETING
  20. MSG "WELCOME to College Aid Calculator" "" "This is the 1996-7 school year version." "" "You MAY copy this program!" "" "Pass CAC along to friends with college in their future."
  21. IF EQUAL %Source "C:\COL_AID"
  22.   MSG "NOTE: If you are installing CAC from the COL_AID directory," "   copy all of the files to two disks before continuing" "       so you'll have a backup or a copy to give to a friend." "" "(SETUP deletes itself when run from the COL_AID directory.)"
  23. ENDIF
  24.  
  25. :MAINMENU
  26. MENU %InstallMenuSel "Install College Aid Calculator;Exit to DOS""Installation Options"
  27. IF EQUAL %InstallMenuSel "Exit to DOS"
  28.   ASK %EXIT "Are you sure you want to exit to DOS?"
  29.   IF YES %EXIT 
  30.     END
  31.   ENDIF
  32.   IF NO %EXIT
  33.     GOTO MAINMENU
  34.   ENDIF 
  35. ENDIF
  36.  
  37. :OSMENU
  38. MENU %OSMenuSel "        Windows 95        ;Windows 3.1;DOS""Operating System Selection"
  39.  
  40. IF EQUAL %OSMenuSel "        Windows 95        "
  41.   SET %RunWin "YES"
  42.   GETPATH %WinPath EXISTS "Please enter the directory" "into which you have installed Windows 95."
  43.   GOTO CHECKFREE
  44. ENDIF
  45.  
  46. IF EQUAL %OSMenuSel "Windows 3.1"
  47.   SET %RunWin "YES"
  48.   GETPATH %WinPath EXISTS "Please enter the directory" "into which you have installed Windows."
  49.   GOTO CHECKFREE
  50. ENDIF
  51.  
  52. IF EQUAL %OSMenuSel "DOS"
  53.   SET %RunWin "NO"
  54.   GOTO CHECKFREE
  55. ENDIF
  56.  
  57. :CHECKFREE
  58. GETPATH %DestExe CREATE "Please enter the drive and path INTO which you wish to" "install College Aid Calculator 96-7."
  59. DISKSPACE %SPACE %DestExe 10000000
  60. IF NO %SPACE
  61.   BEEP
  62.   ERROR "College Aid Calculator 96-6 can not be installed." "You need 10 MB of free disk space to install College Aid Calculator 96-7," "which is recuced to 6.5 MB after installation."
  63.   END
  64. ENDIF
  65.  
  66.  
  67. :COPYFILES
  68. BAT %DestExe\A4.VMC "minmem = 1024" "maxmem = 4096" "virtualsize = 4096" "swapname = %DestExe\A4.SWP"
  69.   PROGRESS 30
  70.   COPY %Source\PKUNZIP.EXE              %DestExe\PKUNZIP.EXE
  71.   COPY %Source\A4V6RT.NET               %DestExe\A4V6RT.NET
  72.   COPY %Source\SETUP.EXE                %DestExe\SETUP.EXE
  73.   COPY %Source\SETUP.DTA                %DestExe\SETUP.DTA
  74.   COPY %Source\README.TXT               %DestExe\README.TXT
  75.   COPY %Source\BOOKS.ZIP                %DestExe\BOOKS.ZIP 
  76.   COPY %Source\COL_AID.ZIP              %DestExe\COL_AID.ZIP
  77.   PROGRESS 65
  78.   UNZIP %DestExe\COL_AID.ZIP            %DestExe\ *.*
  79.   UNZIP %DestExe\BOOKS.ZIP              %DestEXe\ *.*
  80.   DEL %DestExe\PKUNZIP.EXE              
  81.   DEL %DestExe\SETUP.EXE                
  82.   DEL %DestExe\SETUP.DTA                
  83.   DEL %DestExe\COL_AID.ZIP
  84.   DEL %DestExe\BOOKS.ZIP
  85.  
  86. :COPYDONE
  87. MAKEDFL %DESTEXE %STARTUPP %STARTUPD %SET %CURNAME %CURSYM %DATESEP %NUMFMT %DATEFMT %SHAREMODE
  88. PROGRESS 97
  89. BEEP
  90.  
  91. :CHECKFPU
  92. FPUCHECK %FpuStat
  93. IF NO %FpuStat
  94.   IF EQUAL %RunWin "YES"
  95.     FILESCAN %WinPath\SYSTEM.INI "WEMU387.386" %EmuStat
  96.     IF NO %EmuStat
  97.       MSG "WARNING!!!" "Setup has determined that this machine does not have a math coprocessor."
  98.       MSG "The SYSTEM.INI file has been edited to load a floating point emulator to" "allow you to run College Aid Calculator from Windows." "A backup (SYSTEM.BAK) has been saved to the COL_AID directory." 
  99.       COPY %WinPath\SYSTEM.INI    %DestExe\SYSTEM.BAK
  100.       INSERTLINE %WinPath\SYSTEM.INI "[386Enh]" "Device=%WinPath\wemu387.386"
  101.       COPY %DestExe\WEMU387.386    %WinPath\WEMU387.386
  102.     ENDIF
  103.   ENDIF
  104. ENDIF
  105.  
  106. COPY %DestExe\modenv.exe              %BOOT\modenv.exe
  107.  
  108. :MODFILES
  109. DEL cac.set
  110. IF EQUAL %OSMenuSel "        Windows 95        "
  111.   SET %RunWin "YES"
  112.   MSG "In order to run CAC 96-7 under Windows 95, the" "following lines need to be in your configuration files:" "" "AUTOEXEC.BAT  -  SHARE /F:5000 /L:300" " " "CONFIG.SYS    -  FILES=150           " "              -  BUFFERS=32          " " "
  113.   ASK %ModFiles "Do you want Setup to modify the AUTOEXEC.BAT and CONFIG.SYS files?" " " "(Your current files will be copied to AUTOEXEC.CAC and CONFIG.CAC)"
  114.   IF YES %ModFiles
  115.     FILESCAN %BOOT\CONFIG.SYS "[menu]" %DosMenu
  116.     IF NO %DosMenu
  117.       APPENDLINE "%BOOT\cac.set" "%BOOT\AUTOEXEC.BAT"
  118.       APPENDLINE "%BOOT\cac.set" "%BOOT\CONFIG.SYS"
  119.       APPENDLINE "%BOOT\cac.set" "%BOOT\AUTOEXEC.CAC"
  120.       APPENDLINE "%BOOT\cac.set" "%BOOT\CONFIG.CAC"
  121.       APPENDLINE "%BOOT\cac.set" "%WinPath\COMMAND\SHARE.EXE /F:5000 /L:300"
  122.       APPENDLINE "%BOOT\cac.set" "FILES=150"
  123.       APPENDLINE "%BOOT\cac.set" "BUFFERS=32"
  124.       COPY %BOOT\AUTOEXEC.BAT           %BOOT\AUTOEXEC.CAC
  125.       COPY %BOOT\CONFIG.SYS           %BOOT\CONFIG.CAC
  126.       APPENDLINE "%BOOT\_finish.bat" "@echo off"
  127.       APPENDLINE "%BOOT\_finish.bat" "%BOOT"
  128.       APPENDLINE "%BOOT\_finish.bat" "cd \"
  129.       APPENDLINE "%BOOT\_finish.bat" "modenv.exe"
  130.       APPENDLINE "%BOOT\_finish.bat" "del modenv.exe"
  131.       APPENDLINE "%BOOT\_finish.bat" "del cac.set"
  132.     ELSE
  133.       MSG "Setup has detected a DOS Boot Menu in your CONFIG.SYS file."You must manually change your AUTOEXEC.BAT and CONFIG.SYS" "files.  View the README file for instructions on making the change."
  134.     ENDIF
  135.   ENDIF
  136.   GOTO FINISH
  137. ENDIF
  138.  
  139. IF EQUAL %OSMenuSel "Windows 3.1"
  140.   SET %RunWin "YES"
  141.   MSG "In order to run CAC 96-7 under Windows 3.1, the" "following lines need to be in your configuration files:" "" "AUTOEXEC.BAT  -  SHARE /F:4000 /L:200" " " "CONFIG.SYS    -  FILES=50            " "              -  BUFFERS=32          " " "
  142.   ASK %ModFiles "Do you want Setup to modify the AUTOEXEC.BAT and CONFIG.SYS files?" " " "(Your current files will be copied to AUTOEXEC.CAC and CONFIG.CAC)"
  143.   IF YES %ModFiles
  144.     FILESCAN %BOOT\CONFIG.SYS "[menu]" %DosMenu
  145.     IF NO %DosMenu
  146.       APPENDLINE "%BOOT\cac.set" "%BOOT\AUTOEXEC.BAT"
  147.       APPENDLINE "%BOOT\cac.set" "%BOOT\CONFIG.SYS"
  148.       APPENDLINE "%BOOT\cac.set" "%BOOT\AUTOEXEC.CAC"
  149.       APPENDLINE "%BOOT\cac.set" "%BOOT\CONFIG.CAC"
  150.       APPENDLINE "%BOOT\cac.set" "%BOOT\DOS\SHARE.EXE /F:4000 /L:200"
  151.       APPENDLINE "%BOOT\cac.set" "FILES=50"
  152.       APPENDLINE "%BOOT\cac.set" "BUFFERS=32"
  153.       COPY %BOOT\AUTOEXEC.BAT           %BOOT\AUTOEXEC.CAC
  154.       COPY %BOOT\CONFIG.SYS           %BOOT\CONFIG.CAC
  155.       APPENDLINE "%BOOT\_finish.bat" "@echo off"
  156.       APPENDLINE "%BOOT\_finish.bat" "%BOOT"
  157.       APPENDLINE "%BOOT\_finish.bat" "cd \"
  158.       APPENDLINE "%BOOT\_finish.bat" "modenv.exe"
  159.       APPENDLINE "%BOOT\_finish.bat" "del modenv.exe"
  160.       APPENDLINE "%BOOT\_finish.bat" "del cac.set"
  161.     ELSE
  162.       MSG "Setup has detected a DOS Boot Menu in your CONFIG.SYS file."You must manually change your AUTOEXEC.BAT and CONFIG.SYS" "files.  View the README file for instructions on making the change."
  163.     ENDIF
  164.   ENDIF
  165.   GOTO FINISH
  166. ENDIF
  167.  
  168. IF EQUAL %OSMenuSel "DOS"
  169.   SET %RunWin "NO"
  170.   MSG "In order to run CAC 96-7 under DOS, the" "following lines need to be in your configuration files:" "" "AUTOEXEC.BAT  -  SHARE /F:4000 /L:200" " " "CONFIG.SYS    -  FILES=50            " "              -  BUFFERS=32          " " "
  171.   ASK %ModFiles "Do you want Setup to modify the AUTOEXEC.BAT and CONFIG.SYS files?" " " "(Your current files will be copied to AUTOEXEC.CAC and CONFIG.CAC)"
  172.   IF YES %ModFiles
  173.     FILESCAN %BOOT\CONFIG.SYS "[menu]" %DosMenu
  174.     IF NO %DosMenu
  175.       APPENDLINE "%BOOT\cac.set" "%BOOT\AUTOEXEC.BAT"
  176.       APPENDLINE "%BOOT\cac.set" "%BOOT\CONFIG.SYS"
  177.       APPENDLINE "%BOOT\cac.set" "%BOOT\AUTOEXEC.CAC"
  178.       APPENDLINE "%BOOT\cac.set" "%BOOT\CONFIG.CAC"
  179.       APPENDLINE "%BOOT\cac.set" "%BOOT\DOS\SHARE.EXE /F:4000 /L:200"
  180.       APPENDLINE "%BOOT\cac.set" "FILES=50"
  181.       APPENDLINE "%BOOT\cac.set" "BUFFERS=32"
  182.       COPY %BOOT\AUTOEXEC.BAT           %BOOT\AUTOEXEC.CAC
  183.       COPY %BOOT\CONFIG.SYS           %BOOT\CONFIG.CAC
  184.       APPENDLINE "%BOOT\_finish.bat" "@echo off"
  185.       APPENDLINE "%BOOT\_finish.bat" "%Boot"
  186.       APPENDLINE "%BOOT\_finish.bat" "cd \"
  187.       APPENDLINE "%BOOT\_finish.bat" "modenv.exe"
  188.       APPENDLINE "%BOOT\_finish.bat" "del modenv.exe"
  189.       APPENDLINE "%BOOT\_finish.bat" "del cac.set"
  190.     ELSE
  191.       MSG "Setup has detected a DOS Boot Menu in your CONFIG.SYS file."You must manually change your AUTOEXEC.BAT and CONFIG.SYS" "files.  View the README file for instructions on making the change."
  192.     ENDIF
  193.   ENDIF
  194.   GOTO FINISH
  195. ENDIF
  196.  
  197. :FINISH
  198. CLS
  199. BEEP
  200.  
  201. APPENDLINE "%BOOT\_finish.bat" "@echo off"
  202. APPENDLINE "%BOOT\_finish.bat" "del %Source\fini.bat"
  203. APPENDLINE "%BOOT\_finish.bat" "%DestExe\readme.bat"
  204. APPENDLINE "%DestExe\readme.bat" "del %BOOT\_finish.bat"
  205. APPENDLINE "%DestExe\readme.bat" "edit %DestExe\readme.txt"
  206. APPENDLINE "%DestExe\readme.bat" "del %DestExe\readme.bat"
  207. APPENDLINE "%Source\fini.bat" "@echo off"
  208. APPENDLINE "%Source\fini.bat" "%BOOT\_finish.bat"
  209.  
  210. RUN fini.bat
  211. END
  212.